Skip to content

Conversation

janbajc
Copy link
Contributor

@janbajc janbajc commented Sep 9, 2025

Check all that apply

Type of Change

  • WWST Certification Request
    • If this is your first time contributing code:
      • I have reviewed the README.md file
      • I have reviewed the CODE_OF_CONDUCT.md file
      • I have signed the CLA
    • I plan on entering a WWST Certification Request or have entered a request through the WWST Certification console at developer.smartthings.com
  • Bug fix
  • New feature
  • Refactor

Checklist

  • I have performed a self-review of my code
  • I have commented my code in hard-to-understand areas
  • I have verified my changes by testing with a device or have communicated a plan for testing
  • I am adding new behavior, such as adding a sub-driver, and have added and run new unit tests to cover the new behavior

Description of Change

Summary of Completed Tests

Comment on lines 33 to 52
local function notification_report_handler(self, device, cmd)
local event
if cmd.args.notification_type == Notification.notification_type.HOME_SECURITY then
if cmd.args.event == Notification.event.home_security.STATE_IDLE then
device:emit_event(capabilities.motionSensor.motion.inactive())
elseif cmd.args.event == Notification.event.home_security.MOTION_DETECTION then
event = capabilities.motionSensor.motion.active()
end
end

if event ~= nil then
device:emit_event(event)
end
end

local function sensor_multilevel_report_handler(self, device, cmd)
if cmd.args.sensor_type == SensorMultilevel.sensor_type.LUMINANCE then
device:emit_event(capabilities.illuminanceMeasurement.illuminance({value = cmd.args.sensor_value, unit = "lux"}))
end
end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe all of these are covered by our defaults and shouldn't have required any code changes, but you could use a test to verify.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and fixed in 4541c11

Copy link

Duplicate profile check: Passed - no duplicate profiles detected.

Copy link

github-actions bot commented Sep 15, 2025

Channel deleted.

Copy link

github-actions bot commented Sep 15, 2025

Test Results

   70 files    451 suites   0s ⏱️
2 344 tests 2 344 ✅ 0 💤 0 ❌
3 949 runs  3 949 ✅ 0 💤 0 ❌

Results for commit d9d911c.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Sep 15, 2025

File Coverage
All files 98%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-sensor/src/init.lua 95%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-sensor/src/wakeup-no-poll/init.lua 92%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-sensor/src/aeotec-multisensor/multisensor-7/init.lua 93%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-sensor/src/aeotec-multisensor/init.lua 97%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-sensor/src/enerwave-motion-sensor/init.lua 93%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-sensor/src/sensative-strip/init.lua 95%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-sensor/src/fibaro-flood-sensor/init.lua 94%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-sensor/src/homeseer-multi-sensor/init.lua 95%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-sensor/src/aeotec-multisensor/multisensor-6/init.lua 93%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-sensor/src/zooz-4-in-1-sensor/init.lua 98%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-sensor/src/apiv6_bugfix/init.lua 77%

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against d9d911c

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this file no longer does anything and should be removed

lazy_load_if_possible("wakeup-no-poll"),
lazy_load_if_possible("apiv6_bugfix")
lazy_load_if_possible("apiv6_bugfix"),
lazy_load_if_possible("shelly-wave-motion")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the file referenced here does not exist

@greens greens merged commit 3b5ed9f into SmartThingsCommunity:main Sep 19, 2025
12 checks passed
@greens greens changed the title Add shelly wave motion driver WWSTCERT-7864 Add shelly wave motion driver Sep 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants